var validare = {
	verifyPhone:function(rule, value, callback) {
		let reg = /^[1][3, 4, 5, 6, 7, 8, 9][0-9]{9}$/
		if(!reg.test(value)){
			return callback(new Error('请输入正确的手机号码'))
		}
		callback()
	},
	isNumber:function(str) {
		return /^\d+$/.test(str);
	},
	verifyCars:function(rule, value, callback) {
		let reg2 = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/
		if(!reg2.test(value)){
			return callback(new Error('请输入正确的车牌号码'))
		}
		callback()
	},
	verifyZS:function(rule, value, callback) {
		let reg = /^[0-9]$/
		if(!reg.test(value)){
			return callback(new Error('请输入整数'))
		}
		callback()
	},

};
export default validare;
